#include "main.h"

#include "bsp_delay.h"
#include "bsp_usart.h"
#include "bsp_sys.h"

#include "bsp_led.h"
#include "bsp_exti.h"
#include "bsp_timer.h"
#include "bsp_adc.h"
#include "bsp_key.h"

#include "oled.h"
#include "GUI.h"
#include "gui_port.h"

extern struct Menu_t *menuPoint;

int main()
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	BspUsartInit(115200);
	DelayInit();
	BspLedInit();
	BspExtiInit();
	BspTim3Init(5000,72);
	BspAdcInit();
	BspKeyInit();
	
	OLED_Init();
	gui_operations_init();
	GuiInit();
	while(1)
	{
		GuiKeyControl();
		DisplayRefreash(menuPoint);
		DelayMs(10);
	}
}

